-- GENERATED SPELL FOR [Corporal Noreg Stormpike] --


function spell0_13447(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13447', 0, 1)
end

function spell1_13447(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13447', 5255, 1)
end

function Sorts_13447(pUnit, Event)
local choix_sorts_13447 = math.random(0, 1)
if choix_sorts_13447 == 0 then
pUnit:RegisterEvent('spell0_13447', 1, 1)
end
if choix_sorts_13447 == 1 then
pUnit:RegisterEvent('spell1_13447', 1, 1)
end
end

function mob13447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13447', math.random(1500, 3000), 1)
end

function mob13447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13447, 1, 'mob13447_Action')
RegisterUnitEvent(13447, 2, 'mob13447_Leave')
RegisterUnitEvent(13447, 3, 'mob13447_Kill')
RegisterUnitEvent(13447, 4, 'mob13447_Die')
